import { ITimer } from "../../app_base/module/timer/ITimer";
import { Timer } from "../../app_base/module/timer/Timer";

export class TimerImpl implements ITimer {
    enable(timer: Timer): void {
        cc.director.getScheduler().enableForTarget(timer);
        cc.director.getScheduler().schedule(timer['_update'], timer, 0, cc.macro.REPEAT_FOREVER, 0, false);
    }
}
